package com.junqi.live.room.domain.service;

import com.junqi.common.entity.Message;
import com.junqi.live.room.domain.bo.ChatMessageBo;
import com.junqi.live.room.domain.bo.LiveRoomBo;

import java.util.List;
import java.util.Map;

public interface LiveRoomDomainService {

    List<LiveRoomBo> listByTypeId(String typeId);

    /**
     * 发送消息
     * @param request
     * @return
     */
    Message sendMsg(ChatMessageBo chatMessageBo);

    /**
     * 查询房间详情
     * @param id
     * @return
     */
    LiveRoomBo getInfo(String id);

    /**
     * 开播
     * @return
     */
    LiveRoomBo openPlay(LiveRoomBo liveRoomBo);

    /**
     * 关播
     * @return
     */
    void closePlay();

    LiveRoomBo getRoomUserInfo();

    List<LiveRoomBo> getRoomCollectList();

    void updateCollect(String roomId, Boolean select);
}
